package com.example.yang.ministy;

import android.support.v4.app.Fragment;

import com.sam.ui.base.activity.BaseFragmentActivity;
import com.sam.widget.nav_bar.NavigationBar;

import com.example.yang.ministy.com.example.yang.Fragment.DiscoveryFragment;
import com.example.yang.ministy.com.example.yang.Fragment.mefragment;
import com.example.yang.ministy.com.example.yang.Fragment.MessageFragment;
import com.example.yang.ministy.com.example.yang.Fragment.WonderFragment;


/**
 * Created by Yang on 2016/9/22.
 */
public class TestBaseFragentActivity extends BaseFragmentActivity {
    @Override
    protected void initPageInfo() {
        NavigationBar.NavigationItemEntity[]items=new NavigationBar.NavigationItemEntity[]{
                new NavigationBar.NavigationItemEntity(this,R.string.nav_wonder,R.mipmap.nav_wonder_normal_ic,R.mipmap.nav_wonder_checked_ic),
                new NavigationBar.NavigationItemEntity(this,R.string.nav_discovery,R.mipmap.nav_discovery_normal_ic,R.mipmap.nav_discovery_checked_ic),
                new NavigationBar.NavigationItemEntity("",null,null),
                new NavigationBar.NavigationItemEntity(this,R.string.nav_message,R.mipmap.nav_message_normal_ic,R.mipmap.nav_message_checked_ic),
                new NavigationBar.NavigationItemEntity(this,R.string.nav_wonder,R.mipmap.nav_me_normal_ic,R.mipmap.nav_me_checked_ic),

        };
        final Fragment[] fragments=new Fragment[]{new WonderFragment(),new DiscoveryFragment(),null,new MessageFragment(),new mefragment()};
        setPageInfo(items,fragments,0);

        }

    }

